﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Admin.Master" CodeBehind="AdminBanners.aspx.cs" Inherits="EHTSaleManager.UIAdmin.AdminBanners" %>
<asp:Content ContentPlaceHolderID="MainContent" runat="server" ID="center">
   <h1>
        <asp:Label ID="lbAdminBanners" runat="server" Text="DANH SÁCH QUẢNG CÁO"></asp:Label>
    </h1>
    
    <asp:Repeater ID="rpBanners" runat="server" 
        onitemcommand="rpBanners_ItemCommand">
        <HeaderTemplate>
            <table cellspacing="0" cellpadding="0" class="data-table">
                <thead>
                    <tr>
                        <th class="actions edit">
                            Sửa
                        </th>
                        <th class="actions delete">
                            Xoá
                        </th>
                        <th>
                            Nội Dung
                        </th>
                        <th>
                            Phân vùng
                        </th>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td class="actions edit">
                    <a href='AdminBannerIU.aspx?QuangCaoID=<%#Eval("QuangCaoID")%>'>
                        <img alt="Edit" src="/Styles/Edit.png"></a>
                </td>
                <td class="actions delete">
                    <%--<asp:ImageButton ID="ibDelete" CommandArgument='<%#Eval("QuangCaoID")%>' CommandName="delete1" ToolTip="Delete" runat="server" ImageUrl="/Styles/Delete.png" OnClientClick="return confirm('Bạn có muốn xoá banner quảng cáo này không?');" />--%>
                     <asp:LinkButton ID="LinkButton1" CommandName="delete1" CommandArgument='<%#Eval("QuangCaoID")%>'
                            runat="server" OnClientClick="return confirm('Er du sikker');"><img alt="Delete" src="/Styles/Delete.png" /></asp:LinkButton>
                </td>
                <th>
                    <%#Eval("NoiDung")%>
                </th>
                <td>
                    <%#Eval("PhanVungID")%>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody> </table>
        </FooterTemplate>
    </asp:Repeater>
    <p class="submitButton">
        <asp:Button ID="btnAdd" runat="server" Text="Thêm mới quảng cáo" onclick="btnAdd_Click"
           />
    </p>
</asp:Content>
  
